<?php TPL::output('global/header.tpl.htm'); ?>

<div class="i_bd i_mainElem i_clear">
	<div class="q_congMain q_x3" style ="height:150px;">
		<div class="c_mainData">
			<span class="c_userPic i_left"><img title="<?php echo $this->user['user_name']; ?>" alt="anwsion" class="<?php echo $this->user['user_name']; ?>" src="<?php echo get_avatar_url($this->user['uid'], 'max'); ?>" /></span>
			<p class="c_Username"><b class="i_gloCor"><?php echo $this->user['user_name']; ?></b> <?php if ($this->user['verified']) { ?><em title="已认证" class="v i_small"></em> <?php } ?><span class="c_autograph i_cl_02 i_gltxtHide"><?php echo $this->user['signature']; ?></span></p>
			<div class="c_userflg i_bdted">
				<p class="i_right c_tosend">
				<?php if ($this->user['uid'] != $this->user_id AND $this->user_id) { ?><a href="javascript:;" title="发私信" onClick="$.startQs({flgs:1,msg:true,username:'<?php echo $this->user['user_name']; ?>'});">发私信</a><a href="javascript:;" title="向ta发起站点" onClick="$.startQs({category_enable:<?php echo (get_setting('category_enable') == 'Y') ? 1 : 0; ?>, username:'<?php echo $this->user['user_name']; ?>',user_id:<?php echo $this->user['uid']; ?>});">问Ta</a><a href="javascript:;" class="i_green_bt2<?php if ($this->user_follow_check) { ?> cur <?php } ?>" onclick="follow_people($(this), $(this), <?php echo $this->user['uid']; ?>);"><?php if ($this->user_follow_check) { ?>取消<?php } ?>关注</a><?php } else if ($this->user_id == $this->user['uid']) { ?><a href="account/setting/profile/" class="i_green_bt2">编辑</a><?php } ?>
				</p>
				
				<p class="c_gloicon">
					<?php if ($this->user['province']) { ?><span class="c_s1"><?php echo $this->user['province']; ?> <?php echo $this->user['city']; ?></span><?php } ?>
					<?php if ($this->job_name) { ?><span class="c_s2"><?php echo $this->job_name; ?></span><?php } ?>
					<?php if ((get_setting('qq_t_enabled') == 'Y' OR get_setting('sina_weibo_enabled') == 'Y') AND ($this->sina_weibo_url OR $this->qq_weibo_url)) { ?><span class="c_s3">绑定认证：<?php if ($this->sina_weibo_url AND get_setting('sina_weibo_enabled') == 'Y') { ?><a href="<?php if ($this->sina_weibo_url) { ?><?php echo $this->sina_weibo_url; ?><?php } else { ?>javascript:;<?php } ?>" title="新浪微博" class="sina i_small"></a><?php } ?><?php if ($this->qq_weibo_url AND get_setting('qq_t_enabled') == 'Y') { ?><a href="<?php if ($this->user_info['weibo_visit']) { ?><?php echo $this->qq_weibo_url; ?><?php } else { ?>javascript:;<?php } ?>" title="腾讯微博" class="tx i_small"></a><?php } ?></span><?php } ?>
					<span class="c_s4">主页被浏览：<?php echo $this->user['views_count']; ?> 次</span>
				</p>
			</div>

			<p class="c_capacity c_gloicon">
				<span class="c_s5">威望：<big class="u_linkColor"><?php echo $this->user['reputation']; ?></big></span>
				<?php if (get_setting('integral_system_enabled') == 'Y') { ?><span class="c_s6">积分：<big class="u_linkCly"><?php echo $this->user['integral']; ?></big><!--<em class="c_topten i_small" title="top50"></em>--></span><?php } ?>
				<span class="c_s7">赞同：<?php echo $this->user['agree_count']; ?></span>
				<span class="c_s8">感谢：<?php echo $this->user['thanks_count']; ?></span>
			</p>
		</div>
        </div>
        <div class="b_restrain u_mainElm">
		<h3 class="latest_trendst_h3 q_qusAll i_prl q_content_h3 ">
			<p class="q_navC i_pas" id="v_Elem">
				<a href="javascript:;">详细资料</a>
				<a href="javascript:;" id="page_actions">动态</a>
				<a href="javascript:;" id="page_focus">关注</a>
				<a href="javascript:;" id="page_questions">新建站点</a>
				<a href="javascript:;" id="page_answers">站点评价</a>
				<a href="javascript:;" class="cur">概述</a>
			</p>
		</h3>
		
		<div class="c_mainDiv">
			<!--概述_s-->
			<div class="c_fx i_clear" id="v_Elem_5">				
				<?php if ($this->reputation_topics) { ?>
				<h4 class="c_h4 i_gloCor latest_trendst_h3 i_bordernth">活跃标签</h4>
					<ul class="c_topic i_clear">
					<?php foreach ($this->reputation_topics AS $key => $val) { ?>
						<li>
							<a href="topic/<?php echo $val['url_token']; ?>" title="<?php echo $val['topic_title']; ?>" class="i_glotopic user_msg" data-message="&uid=<?php echo $val['topic_id']; ?>&card=topic"><?php echo $val['topic_title']; ?></a>
							<span class="c_progressBar i_cl_02"><?php echo $val['percent'];?>%<big class="b i_radiu3"><small class="sm" style=" width:<?php echo $val['percent'];?>%;"></small></big></span>
						</li>
					<?php } ?>
                    </ul>
                    <?php } ?>
                    <!--右边栏-->
                    <div class="i_right c_mainElem">
                    <h4 class="c_h4 i_gloCor latest_trendst_h3"><a href="javascript:;" onclick="$('#page_questions').click(); $.scrollTo(1, 600, {queue:true});" class="v_more i_right">更多 »</a>新建站点</h4>
                    <?php foreach ($this->user_actions_questions AS $key => $val) { ?>
                    <div class="S_module c_module c_rightReply">
                    	<h4 class="i_gltxtHide"><a href="question/<?php echo $val['question_id']; ?>"><?php echo $val['question_content']; ?></a></h4>
                    	<div class="s_txt i_prl">
                    		<p class="i_gltxtHide"><?php echo $val['view_count']; ?> 次浏览 &nbsp;• <?php echo $val['focus_count']; ?> 个关注 &nbsp;• <?php echo date_friendly($val['add_time']); ?></p>
                    		<!--赞同数--> 
                    		<a class="s_endorse i_pas i_small" href="question/<?php echo $val['question_id']; ?>" title="该站点已被评价站点 <?php echo $val['answer_count']; ?> 次"><?php echo $val['answer_count']; ?></a>
                    	</div>
                    </div>
                    <?php } ?>

                    <h4 class="i_gloCor latest_trendst_h3"><a href="javascript:;" onclick="$('#page_focus').click(); $.scrollTo(1, 600, {queue:true});" class="v_more i_right">更多 »</a>关注</h4>
                    <span class="c_addUs i_right"><b>关注者 <em class="i_blue"><?php echo $this->user['fans_count']; ?></em> 人</b>

                    <p class="q_UserList">
                    	<?php foreach ($this->fans_list AS $key => $val) { ?>
	                    	<a class="i_imgforUser user_msg" href="people/<?php echo $val['url_token']; ?>" data-message="&uid=<?php echo $val['uid']; ?>&card=user" ><img src="<?php echo get_avatar_url($val['uid'], 'max'); ?>" alt="<?php echo $val['user_name']; ?>"></a>
	                    <?php } ?>
                    </p>
                    </span>
                    
                    <span class="c_addUs"><b>关注了 <em class="i_blue"><?php echo $this->user['friend_count']; ?></em> 人</b>
                    	<p class="q_UserList">
                    	<?php foreach ($this->friends_list AS $key => $val) { ?>
	                    	<a class="i_imgforUser user_msg" href="people/<?php echo $val['url_token']; ?>" data-message="&uid=<?php echo $val['uid']; ?>&card=user"><img src="<?php echo get_avatar_url($val['uid'], 'max'); ?>" alt="<?php echo $val['user_name']; ?>"></a>
	                    <?php } ?>
	                    </p>
                    </span>

                    <div class="c_TopicRight"><b>关注了 <em class="i_blue"><?php echo $this->user['topic_focus_count']; ?></em> 标签</b>
                    	<p class="t_stpd">
                    	<?php foreach ($this->focus_topics AS $key => $val) { ?>
	                    	<a class="i_glotopic user_msg" data-message="&uid=<?php echo $val['topic_id']; ?>&card=topic" href="topic/<?php echo $val['url_token']; ?>"><?php echo $val['topic_title']; ?></a>
	                    <?php } ?>
	                    </p>
	                </div>
	                </div>
                    <!--左边栏-->
                    <div class="c_mainElem">
                    	 <h4 class="c_h4 i_gloCor latest_trendst_h3"><a href="javascript:;" onclick="$('#page_answers').click(); $.scrollTo(1, 600, {queue:true});" class="v_more i_right">更多 »</a>评价站点</h4>
                    	 <?php foreach ($this->user_actions_answers AS $key => $val) { ?>
                         <div class="S_module c_module">
                            <h4 class="i_gltxtHide"><a href="question/<?php echo $val['question_id']; ?>"><?php echo $val['question_content']; ?></a></h4>
                            <div class="s_txt i_prl">
                            	<p class="i_gltxtHide"><?php echo cjk_substr($val['answer_info']['answer_content'], 0, 130, 'UTF-8', '...'); ?></p>
                           		<!--赞同数--> 
                            	<a class="s_endorse i_pas i_small" href="question/<?php echo $val['question_id']; ?>" title="<?php echo $val['answer_info']['agree_count']; ?> 次赞同"><?php echo $val['answer_info']['agree_count']; ?></a> 
                            </div>
                         </div>
                         <?php } ?>
                        
                        <h4 class="i_gloCor latest_trendst_h3"><a href="javascript:;" onclick="$('#page_actions').click(); $.scrollTo(1, 600, {queue:true});" class="v_more i_right">更多 »</a>最新动态</h4>
                        <div class="c_trends t_stpd">
                        	<?php foreach ($this->user_actions_answers AS $key => $val) { ?>
                            <p><span class="i_cl_02 i_right"><?php echo date_friendly($val['add_time']); ?></span><?php echo str_replace('赞同了该评价站点', '赞同了 1 个评价站点', $val['last_action_str']); ?>，<a href="question/<?php echo $val['question_id']; ?>" class="i_gltxtHide"><?php echo $val['question_content']; ?></a></p>
                            <?php } ?>
                        </div>
                    </div>
              </div>
              <!--概述_e-->   
              
                <!--评价站点<_s-->
             	<div class="i_hide" id="v_Elem_4">
             		<h4 class="c_h4 i_gloCor latest_trendst_h3 i_bordernth">评价站点</h4>
             		<div id="contents_user_actions_answers">
             		
             		</div>
               
                    <p id="bp_user_actions_answers_more"><a title="查看更多 »" href="javascript:;" class="i_ajax_more">更多...</a></p>
                </div>
                <!--评价站点<_e-->
             
                <!--新建站点_s-->
             	<div class="i_hide" id="v_Elem_3">
                	<h4 class="c_h4 i_gloCor latest_trendst_h3 i_bordernth">新建站点</h4>
                	<div id="contents_user_actions_questions">
                	
                	</div>
                   
                   <p id="bp_user_actions_questions_more"><a title="查看更多 »" href="javascript:;" class="i_ajax_more">更多...</a></p>
              </div>
                <!--新建站点_e-->
             
                <!--关注_s-->
             	<div class="i_hide" id="v_Elem_2">
                	<p class="c_atte i_gray" id="c_Level">
                    	<a href="javascript:;" class="cur">关注的人</a>
                        <a href="javascript:;">关注者</a>
                        <a href="javascript:;">关注的标签</a>
                    </p>
                    
                    <div class="c_attent">
                        <div class="c_mytopic t_topicMain" id="c_Level_0">
                        	<h4 class="c_h4 i_gloCor latest_trendst_h3 i_bordernth">关注的人</h4>
                            <ul class="pri_letter i_clear t_hot" id="contents_user_follows">
                            
                            </ul>
                           
                           <p id="bp_user_follows_more"><a title="查看更多 »" href="javascript:;" class="i_ajax_more">更多...</a></p>
                        </div>
                        <div class="c_mytopic t_topicMain i_hide" id="c_Level_1">
                        	<h4 class="c_h4 i_gloCor latest_trendst_h3 i_bordernth">关注者</h4>
                            <ul class="pri_letter i_clear t_hot" id="contents_user_fans">
                            </li>
                           </ul>
                           
                           <p id="bp_user_fans_more"><a title="查看更多 »" href="javascript:;" class="i_ajax_more">更多...</a></p>
                        </div>
                        <div class="c_mytopic t_topicMain i_hide" id="c_Level_2">
                        	<h4 class="c_h4 i_gloCor latest_trendst_h3 i_bordernth">关注了 <?php echo $this->user['topic_focus_count']; ?> 个标签</h4>
                            <ul class="pri_letter i_clear t_hot" id="contents_user_topics">
                            </ul>
                           
                            <p id="bp_user_topics_more"><a title="查看更多 »" href="javascript:;" class="i_ajax_more">更多...</a></p>
                        </div>
                    </div>
                </div>
                <!--关注_e-->
             
                <!--动态_s-->
             	<div class="i_hide" id="v_Elem_1">
                	<h4 class="c_h4 i_gloCor latest_trendst_h3 i_bordernth">最新动态</h4>
                	<ul class="new_ls" id="contents_user_actions">
                    </ul>
                    <p id="bp_user_actions_more"><a title="查看更多 »" href="javascript:;" class="i_ajax_more">更多...</a></p>
                </div>
                <!--动态_e-->
             
                <!--详细资料_s-->
             	<div class="i_hide" id="v_Elem_0">
                	<h4 class="c_h4 i_gloCor latest_trendst_h3 i_bordernth">详细资料</h4>
                    <ul class="c_details">
                    	<?php if ((get_setting('qq_t_enabled') == 'Y' OR get_setting('sina_weibo_enabled') == 'Y') AND ($this->sina_weibo_url OR $this->qq_weibo_url)) { ?>
                        <li><span class="i_cl_01">绑定认证：</span>
                        <?php if ($this->sina_weibo_url AND get_setting('sina_weibo_enabled') == 'Y') { ?><a href="<?php if ($this->sina_weibo_url) { ?><?php echo $this->sina_weibo_url; ?><?php } else { ?>javascript:;<?php } ?>" title="新浪微博" class="c_s3 i_cl_02"><em class="sina i_small"></em>新浪微博</a><?php } ?>
                        <?php if ($this->qq_weibo_url AND get_setting('qq_t_enabled') == 'Y') { ?><a href="<?php if ($this->user_info['weibo_visit']) { ?><?php echo $this->qq_weibo_url; ?><?php } else { ?>javascript:;<?php } ?>" title="腾讯微博" class="c_s3 i_cl_02"><em class="tx i_small"></em>腾讯微博</a><?php } ?>
                        <?php } ?>
                        
                        <li><span class="i_cl_01">个人成就：</span>
                        	<p class="c_gloicon">
                              <span class="c_s5">威望：<big class="u_linkColor"><?php echo $this->user['reputation']; ?></big><!--<span title="Lv9" class="c_level i_small c_Lv9"></span>--></span>
                              <?php if (get_setting('integral_system_enabled') == 'Y') { ?><span class="c_s6">积分：<big class="u_linkCly"><?php echo $this->user['integral']; ?></big></span><?php } ?>
                              <span class="c_s7">赞同：<?php echo $this->user['agree_count']; ?></span>
                              <span class="c_s8">感谢：<?php echo $this->user['thanks_count']; ?></span>
                          </p>
                        </li>
                    	<?php if ($this->user['area_name']) { ?><li><span class="i_cl_01">现居地点：</span><?php echo $this->user['area_name']; ?></li><?php } ?>
                        <?php if ($this->education_experience_list) { ?><li><span class="i_cl_01">教育经历：</span>
                        <?php foreach($this->education_experience_list as $k => $v) { ?>
                        <?php echo $v['education_years']; ?> 年就读于 <?php echo $v['school_name']; ?> <?php echo $v['departments']; ?> 
                        <br />
                        <?php } ?>
                        </li>
                        <?php } ?>
                        
                        <?php if ($this->work_experience_list) { ?>
                        <li><span class="i_cl_01">职业经历：</span>
                        <?php foreach($this->work_experience_list as $k => $v) { ?>
                        	<?php echo $v['start_year']; ?> - <?php if ($v['end_year'] == -1) { ?>至今<?php } else { ?><?php echo $v['end_year']; ?><?php } ?> 就职于 <?php echo $v['company_name']; ?> <?php if ($v['job_name']) { ?> 任 <?php echo $v['job_name']; ?><?php } ?><br />
                        <?php } ?> 
                        </li>
                        <?php } ?> 
                        <li><span class="i_cl_01">最后活跃：</span><?php if($this->user['last_active']){ ?><?php echo date_friendly($this->user['last_active']); ?><?php } ?></li>
                        <?php if ($this->reputation_topics) { ?>
                        <li class="c_last"><span class="i_cl_01">擅长标签：</span>
                        <?php foreach ($this->reputation_topics AS $key => $val) { ?>
                        	<p class="c_list_topic">
                                <a href="topic/<?php echo $val['url_token']; ?>" title="<?php echo $val['topic_title']; ?>" class="i_glotopic user_msg" data-message="&uid=<?php echo $val['topic_id']; ?>&card=topic"><?php echo $val['topic_title']; ?></a>
                                <span title="30%" class="c_progressBar i_cl_02"><?php echo $val['percent'];?>%<big class="b i_radiu3"><small style="width:<?php echo $val['percent'];?>%;" class="sm"></small></big></span>
                            </p>
                        <?php } ?>
                        </li>
                        <?php } ?>
                    </ul>
                </div>
                <!--详细资料_e-->          
        </div>
    </div>
</div>

<script type="text/javascript">
	var PEOPLE_USER_ID = '<?php echo $this->user['uid']; ?>';
	
	var ACTIVITY_ACTIONS = '<?php echo implode(',', array(
		ACTION_LOG::ADD_QUESTION,
		ACTION_LOG::ANSWER_QUESTION,
		ACTION_LOG::ADD_REQUESTION_FOCUS,
		ACTION_LOG::ADD_AGREE,
		ACTION_LOG::ADD_TOPIC,
		ACTION_LOG::ADD_TOPIC_FOCUS
	)); ?>';
	
	$(document).ready(function () {
		$.tabs('#v_Elem');
		$.tabs('#c_Level');
		
		bp_more_load(G_BASE_URL + '/people/ajax/user_actions/uid-' + PEOPLE_USER_ID + '__actions-201', $('#bp_user_actions_answers_more'), $('#contents_user_actions_answers'));	// 参与的站点
			  
		bp_more_load(G_BASE_URL + '/people/ajax/user_actions/uid-' + PEOPLE_USER_ID + '__actions-101', $('#bp_user_actions_questions_more'), $('#contents_user_actions_questions'));	// 发起的站点
		
		bp_more_load(G_BASE_URL + '/people/ajax/user_actions/distint-1__uid-' + PEOPLE_USER_ID + '__actions-' + ACTIVITY_ACTIONS, $('#bp_user_actions_more'), $('#contents_user_actions'));	// 个人动态
		
		bp_more_load(G_BASE_URL + '/people/ajax/follows/type-follows__uid-' + PEOPLE_USER_ID, $('#bp_user_follows_more'), $('#contents_user_follows'));	// 关注
		bp_more_load(G_BASE_URL + '/people/ajax/follows/type-fans__uid-' + PEOPLE_USER_ID, $('#bp_user_fans_more'), $('#contents_user_fans'));	// 粉丝
		
		bp_more_load(G_BASE_URL + '/people/ajax/topics/uid-' + PEOPLE_USER_ID, $('#bp_user_topics_more'), $('#contents_user_topics'));	// 标签
	});
</script>

<?php TPL::output('global/footer.tpl.htm'); ?>